home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / ldscripts / elf_i386.xr < prev    next >
Encoding:
LD Linker Script  |  2007-01-05  |  4.8 KB  |  144 lines

  1. /* Script for ld -r: link without relocation */
  2. OUTPUT_FORMAT("elf32-i386", "elf32-i386",
  3.           "elf32-i386")
  4. OUTPUT_ARCH(i386)
  5. ENTRY(_start)
  6.  /* For some reason, the Solaris linker makes bad executables
  7.   if gld -r is used and the intermediate file has sections starting
  8.   at non-zero addresses.  Could be a Solaris ld bug, could be a GNU ld
  9.   bug.  But for now assigning the zero vmas works.  */
  10. SECTIONS
  11. {
  12.   /* Read-only sections, merged into text segment: */
  13.   .interp       0 : { *(.interp) }
  14.   .hash         0 : { *(.hash) }
  15.   .gnu.hash     0 : { *(.gnu.hash) }
  16.   .dynsym       0 : { *(.dynsym) }
  17.   .dynstr       0 : { *(.dynstr) }
  18.   .gnu.version  0 : { *(.gnu.version) }
  19.   .gnu.version_d 0: { *(.gnu.version_d) }
  20.   .gnu.version_r 0: { *(.gnu.version_r) }
  21.   .rel.init     0 : { *(.rel.init) }
  22.   .rela.init    0 : { *(.rela.init) }
  23.   .rel.text     0 : { *(.rel.text) }
  24.   .rela.text    0 : { *(.rela.text) }
  25.   .rel.fini     0 : { *(.rel.fini) }
  26.   .rela.fini    0 : { *(.rela.fini) }
  27.   .rel.rodata   0 : { *(.rel.rodata) }
  28.   .rela.rodata  0 : { *(.rela.rodata) }
  29.   .rel.data.rel.ro 0 : { *(.rel.data.rel.ro) }
  30.   .rela.data.rel.ro 0 : { *(.rela.data.rel.ro) }
  31.   .rel.data     0 : { *(.rel.data) }
  32.   .rela.data    0 : { *(.rela.data) }
  33.   .rel.tdata    0 : { *(.rel.tdata) }
  34.   .rela.tdata    0 : { *(.rela.tdata) }
  35.   .rel.tbss    0 : { *(.rel.tbss) }
  36.   .rela.tbss    0 : { *(.rela.tbss) }
  37.   .rel.ctors    0 : { *(.rel.ctors) }
  38.   .rela.ctors   0 : { *(.rela.ctors) }
  39.   .rel.dtors    0 : { *(.rel.dtors) }
  40.   .rela.dtors   0 : { *(.rela.dtors) }
  41.   .rel.got      0 : { *(.rel.got) }
  42.   .rela.got     0 : { *(.rela.got) }
  43.   .rel.bss      0 : { *(.rel.bss) }
  44.   .rela.bss     0 : { *(.rela.bss) }
  45.   .rel.plt      0 : { *(.rel.plt) }
  46.   .rela.plt     0 : { *(.rela.plt) }
  47.   .init         0 :
  48.   {
  49.     KEEP (*(.init))
  50.   } =0x90909090
  51.   .plt          0 : { *(.plt) }
  52.   .text         0 :
  53.   {
  54.     *(.text .stub)
  55.     KEEP (*(.text.*personality*))
  56.     /* .gnu.warning sections are handled specially by elf32.em.  */
  57.     *(.gnu.warning)
  58.   } =0x90909090
  59.   .fini         0 :
  60.   {
  61.     KEEP (*(.fini))
  62.   } =0x90909090
  63.   .rodata       0 : { *(.rodata) }
  64.   .rodata1      0 : { *(.rodata1) }
  65.   .eh_frame_hdr : { *(.eh_frame_hdr) }
  66.   .eh_frame     0 : ONLY_IF_RO { KEEP (*(.eh_frame)) }
  67.   .gcc_except_table 0 : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) }
  68.   /* Adjust the address for the data segment.  We want to adjust up to
  69.      the same address within the page on the next page up.  */
  70.   /* Exception handling  */
  71.   .eh_frame     0 : ONLY_IF_RW { KEEP (*(.eh_frame)) }
  72.   .gcc_except_table 0 : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
  73.   /* Thread Local Storage sections  */
  74.   .tdata    0 : { *(.tdata) }
  75.   .tbss        0 : { *(.tbss) }
  76.   .preinit_array   0 :
  77.   {
  78.     KEEP (*(.preinit_array))
  79.   }
  80.   .init_array   0 :
  81.   {
  82.      KEEP (*(SORT(.init_array.*)))
  83.      KEEP (*(.init_array))
  84.   }
  85.   .fini_array   0 :
  86.   {
  87.     KEEP (*(.fini_array))
  88.     KEEP (*(SORT(.fini_array.*)))
  89.   }
  90.   .jcr          0 : { KEEP (*(.jcr)) }
  91.   .dynamic      0 : { *(.dynamic) }
  92.   .got          0 : { *(.got) }
  93.   .got.plt      0 : { *(.got.plt) }
  94.   .data         0 :
  95.   {
  96.     *(.data)
  97.   }
  98.   .data1        0 : { *(.data1) }
  99.   .bss          0 :
  100.   {
  101.    *(.dynbss)
  102.    *(.bss)
  103.    *(COMMON)
  104.    /* Align here to ensure that the .bss section occupies space up to
  105.       _end.  Align after .bss to ensure correct alignment even if the
  106.       .bss section disappears because there are no input sections.
  107.       FIXME: Why do we need it? When there is no .bss section, we don't
  108.       pad the .data section.  */
  109.   }
  110.   /* Stabs debugging sections.  */
  111.   .stab          0 : { *(.stab) }
  112.   .stabstr       0 : { *(.stabstr) }
  113.   .stab.excl     0 : { *(.stab.excl) }
  114.   .stab.exclstr  0 : { *(.stab.exclstr) }
  115.   .stab.index    0 : { *(.stab.index) }
  116.   .stab.indexstr 0 : { *(.stab.indexstr) }
  117.   .comment       0 : { *(.comment) }
  118.   /* DWARF debug sections.
  119.      Symbols in the DWARF debugging sections are relative to the beginning
  120.      of the section so we begin them at 0.  */
  121.   /* DWARF 1 */
  122.   .debug          0 : { *(.debug) }
  123.   .line           0 : { *(.line) }
  124.   /* GNU DWARF 1 extensions */
  125.   .debug_srcinfo  0 : { *(.debug_srcinfo) }
  126.   .debug_sfnames  0 : { *(.debug_sfnames) }
  127.   /* DWARF 1.1 and DWARF 2 */
  128.   .debug_aranges  0 : { *(.debug_aranges) }
  129.   .debug_pubnames 0 : { *(.debug_pubnames) }
  130.   /* DWARF 2 */
  131.   .debug_info     0 : { *(.debug_info) }
  132.   .debug_abbrev   0 : { *(.debug_abbrev) }
  133.   .debug_line     0 : { *(.debug_line) }
  134.   .debug_frame    0 : { *(.debug_frame) }
  135.   .debug_str      0 : { *(.debug_str) }
  136.   .debug_loc      0 : { *(.debug_loc) }
  137.   .debug_macinfo  0 : { *(.debug_macinfo) }
  138.   /* SGI/MIPS DWARF 2 extensions */
  139.   .debug_weaknames 0 : { *(.debug_weaknames) }
  140.   .debug_funcnames 0 : { *(.debug_funcnames) }
  141.   .debug_typenames 0 : { *(.debug_typenames) }
  142.   .debug_varnames  0 : { *(.debug_varnames) }
  143. }
  144.